import { Router } from 'express';
import { login, register } from '../controllers/auth.controller';
import { validate } from '../middlewares/validate.middleware';
import { LoginDTO, RegisterDTO } from '../dto/user.dto';
const router = Router();


router.post('/register', validate(RegisterDTO), register);
router.post('/login', validate(LoginDTO), login);

export default router;
